package com.coincalf.admin.service.impl;

import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.coincalf.admin.entity.EntrustOrder;
import com.coincalf.admin.mapper.EntrustOrderMapper;
import com.coincalf.admin.service.EntrustOrderService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 委托订单信息 服务实现类
 * </p>
 *
 * @author qiang
 * @since 2018-05-13
 */
@Service
public class EntrustOrderServiceImpl extends ServiceImpl<EntrustOrderMapper, EntrustOrder> implements EntrustOrderService {

    @Autowired
    private EntrustOrderMapper entrustOrderMapper;

    @Override
    public Page<EntrustOrder> selectListPage(Page<EntrustOrder> page, Wrapper<EntrustOrder> wrapper) {
        wrapper = (Wrapper<EntrustOrder>) SqlHelper.fillWrapper(page, wrapper);
        page.setRecords(this.entrustOrderMapper.selectListPage(page, wrapper));
        return page;
    }

}
